#include <REGX52.H>
#include "Delay.h"

unsigned char xdata Forward[] = { 0X08,0X0C,0X04,0X06,0X02,0X03,0X01,0X09 };

void Forward_rotation(void)
{
	unsigned char i = 0,j = 0;
	for(j=0;j<5;j++)
	{
		for(i=0;i<7;i++)
		{
			P1 = Forward[i];
			Delay(100);
		}
	}
}
void Back_rotation(void)
{
	static unsigned char i = 7;
	P1 = Forward[i];
	i--;
	if(i<1){i = 7;}
}